function testForFF(){
	//Firefox, Safari, Chrome, and Opera
	var script = document.createElement("script");
	script.type = "text/javascript";
	script.src = "../common/common.js";
	script.onload = function(){
	    log("FF Script is ready!");
	};
	document.body.appendChild(script);
}
function testForIE(){
	var script = document.createElement("script");
	script.type = "text/javascript";
	script.src = "../common/common.js";
	script.onreadystatechange = function(){
		if(script.readyState === "loaded" || script.readyState === "complete"){
			script.onreadystatechange = null;
			log("script is ready!");
		}
	}
	document.body.appendChild(script);
}
function loadScript(url,callback){
	var script = document.createElement("script");
	script.type = "text/javascript";
	
	if(script.readyState){
		script.onreadystatechange = function(){
			if(script.readyState === "loaded" || script.readyState === "complete"){
				script.onreadystatechange = null;
				callback();
			}
		}
	}else{
		script.onload = function(){
	   		 callback();
		};
	}
	script.src = url;
	document.body.appendChild(script);
}